//
//  ConfigableViewController.h
//  HZHome
//
//  Created by SunShine on 13-9-22.
//  Copyright (c) 2013年 xzysun. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
#import "SegmentView.h"
#import "SearchView.h"

@interface ConfigableViewController : UIViewController
{
    NSDictionary *_config;
    //用于传递其他参数
    NSMutableDictionary *_tempConfig;
    MBProgressHUD *_loadingView;
    BOOL _onBackMethod;
}
@property (nonatomic, strong) NSDictionary *config;
@property (nonatomic, strong) NSMutableDictionary *tempConfig;
@property (nonatomic, strong) SearchView *searchView;
//@property (nonatomic, strong) NSInteger *supervisionType;//举报类型
//导航按钮的返回事件
-(void)backMethod;
//获取键盘上方的返回按钮
-(UIView*)getInputAccessoryView;
//开始loading动画
-(void)startLoadingView;
-(void)startLoadingViewWithText:(NSString *)text;
-(void)stopLoadingView;
//显示一个提示框
-(void)showAlertWithTitle:(NSString *)title Msg:(NSString *)msg;
//计算一段文本的高度
-(CGFloat)caculateHeightForString:(NSString *)string AndFontSize:(CGFloat)size AndWitdh:(CGFloat)width;
-(CGFloat)caculateHeightWithoutPaddingForString:(NSString *)string AndFontSize:(CGFloat)size AndWitdh:(CGFloat)width;
- (void)showSearchView;

@property (nonatomic, weak) IBOutlet UIScrollView *backScrollView;

//捕捉异常
- (void)installUncaughtExceptionHandler;
@end
